package cn.lili.controller.feign.system;

import cn.lili.modules.system.client.RequestLogClient;
import cn.lili.modules.system.entity.dos.RequestLog;
import cn.lili.modules.system.service.RequestLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: pyy
 * @date: 2023-11-2
 * @description: 第三方请求日志 feign client
 */
@RestController
@RequiredArgsConstructor
public class RequestLogFeignController implements RequestLogClient {
    private final RequestLogService requestLogService;

    @Override
    public boolean saveOrUpdate(RequestLog requestLog) {
        return requestLogService.saveOrUpdate(requestLog);
    }
}
